package com.zcxy360.sandtable.controller;

import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zcxy360.sandtable.domain.UnitProblem;
import com.zcxy360.sandtable.service.UnitProblemService;

/**
 * 小节题目接口
 * @author 盛亚辉
 *
 */
@RequestMapping("course/student/unit/problem")
@RestController
public class UnitProblemController {

	@Autowired
	private UnitProblemService unitProblemService;
	
	/**
	 * 获取小节题目集合
	 * @param unitProblem 小节题目字段
	 * @return 小节题目集合
	 */
	@RequiresAuthentication
	@GetMapping
	public Object list(UnitProblem unitProblem) {
		return unitProblemService.list(unitProblem);
	}
	
}
